//
//  LeftViewController.m
//  Slider_SB
//
//  Created by xalo on 16/4/13.
//  Copyright © 2016年 李海强. All rights reserved.
//

#import "LeftViewController.h"
#import "RightViewController.h" 
#import "LeftTableViewCell.h"



@interface LeftViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *leftTableView;
@property(nonatomic,retain)NSArray*dataArry;//假数据

@end

@implementation LeftViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.dataArry=@[@"啦啦啦啦啦啦啊啦啦啦",@"4444444564",@"1111111111121321321321321321321321321321"];
    self.leftTableView.estimatedRowHeight  = 68;
    self.leftTableView.rowHeight = UITableViewAutomaticDimension;
    self.leftTableView.delegate=self;
    self.leftTableView.dataSource=self;
    
    
    
}
#pragma mark-tableView的代理方法
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{
    
    //分区个数
    return 1;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    
    return self.dataArry.count;
}
-( LeftTableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    LeftTableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:@"CELL" forIndexPath:indexPath];
    cell.myLabel.numberOfLines=0;
    cell.myLabel.text=self.dataArry[indexPath.row];
   

    return cell;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
